package com.ny.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import javax.validation.groups.Default;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModelProperty;

/**
 * 健身商品的DTO
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
public class FitnessProductDTO {

    /**
     * 产品ID:产品ID，必填
     */
    @NotNull(groups = { UpdateGroup.class, DeleteGroup.class, Default.class }, message = "产品ID不能为空")
    @ApiModelProperty(value = "产品ID:产品ID，必填")
    private Integer productId;

    /**
     * 产品名称:产品名称，必填
     */
    @NotBlank(groups = { CreateGroup.class, Default.class }, message = "产品名称不能为空")
    @Size(max = 100, groups = { CreateGroup.class, Default.class }, message = "产品名称:产品名称，必填长度不能超过100")
    @ApiModelProperty(value = "产品名称:产品名称，必填")
    private String productName;

    /**
     * 产品描述:产品描述
     */
    @ApiModelProperty(value = "产品描述:产品描述")
    private String productDescription;

    /**
     * 价格:价格，必填
     */
    @NotNull(groups = { CreateGroup.class, Default.class }, message = "价格不能为空")
    @ApiModelProperty(value = "价格:价格，必填")
    private BigDecimal price;
}
